/*
 * @Author: scl
 * @Date: 2023-09-17 17:27:56
 * @LastEditTime: 2023-09-17 17:38:33
 * @Description: file content
 */
import type { XtxGuessInstance } from '@/types/components';
import { ref } from 'vue';

/**猜你喜欢组合式函数 */
export const useGuessList = () => {
    //获取组件
    const guessRef = ref<XtxGuessInstance>()
    //触底获取数据
    const onScrolltolower = () => {
        guessRef.value?.getGuessData()
    }
    //返回ref和事件处理函数
    return {
        guessRef,
        onScrolltolower
    }
}